<?php

namespace App\Datas;

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Redis;

class OpusDrawing
{
    public function getList() {
        $data = DB::table('opus_drawing')->orderBy('sort', 'desc')->get();
        return $data->toArray();
    }

    public function getDrawInfo($drawingId)
    {
        $data = DB::table('opus_drawing')->where(['id' => $drawingId])->first();
        return $data;
    }
}